package cn.itsource.base.service;

import cn.itsource.base.query.BaseQuery;
import cn.itsource.util.PageInfo;

import java.util.List;

public interface IBaseService<T> {
    void save(T t);
    void update(T t);
    void delete(Long id);
    T queryById(Long id);
    List<T> queryAll();
    //分页信息
    PageInfo<T> queryPage(BaseQuery query);
}
